import request from '@/utils/request'

export function merchantId() {
  return request({
    url: '/system/myMerchant/getMerchantId',
    method: 'post'
  })
}

// 查询chatPage列表
export function listChatPage(query) {
  return request({
    url: '/system/chatPage/list',
    method: 'get',
    params: query
  })
}

// 查询chatPage详细
export function getChatPage(userId) {
  return request({
    url: '/system/chatPage/' + userId,
    method: 'get'
  })
}

// 新增chatPage
export function addChatPage(data) {
  return request({
    url: '/system/chatPage',
    method: 'post',
    data: data
  })
}

// 修改chatPage
export function updateChatPage(data) {
  return request({
    url: '/system/chatPage',
    method: 'put',
    data: data
  })
}

// 删除chatPage
export function delChatPage(userId) {
  return request({
    url: '/system/chatPage/' + userId,
    method: 'delete'
  })
}
